#define _CRT_SECURE_NO_WARNINGS 1

#include<stdio.h>
#include<string.h>

int main() {
    char a[50];
    fgets(a, sizeof(a), stdin);
    int len = 0;
    len = strlen(a);
    int x = 0, y = 0, z = 0;
    if (len >= 6) {
        x = 1;
        for (int i = 0; i < len; i++) {
            if (a[i] >= 'A' && a[i] <= 'z') {
                y = 1;
            }
            if (a[i] > '0' && a[i] < '9') {
                z = 1;
            }
        }
    }
    if (x && y && z) {
        printf("True\n");
    }
    else {
        printf("False\n");
    }
    return 0;
}